package com.swq.java.code.chapter09.code01;

import java.util.Random;

/**
 * @author xi.yang
 * @create 2019-05-15 19:09
 **/
public class Car {
    public static final int OK = 1;
    public static final int WRONG = 2;
    int i = new Random().nextInt(100);

    public int run() {
        /*假设大于50就不正常*/
        if (i > 50) {
            return OK;
        } else {
            return WRONG;
        }
    }

}
